
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="css/default.css"/>
	<script language="javascript" src="js/jquery-1.8.0.min.js"></script>
</head>
<title>产品详情</title>
<link rel="stylesheet" type="text/css" href="css/password.css"/>
<style>
body{ background:0 none;}
.clay{ width:810px; margin:0 auto; border:1px solid #eee; padding:20px;}
.ljydbtn{display:inline-block}
#PopWindow {border:1px solid #555555; padding:20px; height:300px;}
#PopWindow h3{ font-size:16px; border-bottom:2px solid #0F85D7; font-family:微软雅黑; margin-bottom:20px;}
#PopWindow h4{font-weight:normal; font-size:14px; font-family:微软雅黑; color:#44adec }
#PopWindow .register{ border-bottom:1px solid #eee}
#PopWindow p{ margin:10px 0;}
#PopWindow .left{width:300px; float:left;padding:20px;}
#PopWindow .right{width:300px; float:left;padding:20px; border-left:1px solid #eee}
.inputT{ height:22px; width:200px;}
div.reg,div.login{ text-align:center; }
div.reg input,div.login input{padding:5px 10px; cursor:pointer}
.none{display:none}
.ydimg {height:228px; width:350px;}

.ydzl{width:390px;height:222px; }
</style>
        <div class="clay">
        	<div class="yudi">
            	<div class="ljyd">
                	<span class="price">¥<?=$pros[0]['uprice']/100?></span>
                  <!--   <a type="button" class="ljydbtn orderbtn"  />&nbsp;</a> -->
                </div>
            	<p><span class="cpname"><?=$info['title']?></span><span class="red"><?=$FieldList[$info['p_type']]['jtype']['list'][$info['jtype']]?></span>级景区</p>
                <p>景点地址：<?=$info['address']?></p>
            </div>
            <input type="hidden" id="did" value="<?=$_REQUEST['did']?>"/>
            <div class="ydcon">
            	<div class="ydimg">
                	<img src="<?=$info['imgpath']?>" width="350" height="235" />
                </div>
                <div class="ydzl">
                	<p>产品类型：<span>电子门票（手机短信/手机彩信）</span></p>
                    <p>支付方式：<span>网上支付</span></p>
                    <p>营业时间：<span><?=$info['runtime']?></span></p>
                    <p>商家地址：<span><?=$info['address']?></span></p>
                    <p>联系电话：<span><?=$info['tel']?></span></p>
                </div>
                <div class="cl"></div>
            </div>
            
            <div class="detail">
            	<h4 class="tetit1"><span class="tetitsp acct ">门票预订</span></h4>
                <table class="tetab">
                	<thead>
                    	<th class="mname">门票名称</th>
                    	<th>门市价</th>
                    	<th>零售价</th>
                    	<!-- <th>支付方式</th> -->
                    	<!-- <th>操作</th> -->
                    </thead>
                    <tbody>
						<?foreach($pros as $row){?>
                    	<tr>
                        	<td class="mname2"><a href="#" class="up"><?=$row['ttitle']?></a></td>
                        	<td><s>¥<?=$row['tprice']?></s></td>
                        	<td><s class="money">¥<?=$row['uprice']/100?></s></td>
                        	<!-- <td><span >¥150</span></td> -->
                        	<!-- <td><span class="wszf">网上支付</span></td> -->
                        	<!-- <td><a  href="productSale.html?pid=<?=$row['pid']?><?=$_REQUEST['did']?"&did=".$_REQUEST['did']:""?>" class="ydbtnt orderbtn" title="预订"></a></td> -->
                        </tr>
                        <tr class="caption" class="none">
                        	<td colspan="6">
                            	<p>
                                	<?=$row['notes']?$row['notes']."</br>":""?>
                                	<span>门票类型：电子票</span>
									<span>有效期限：<?=$row['usetime']?></span>
									<span><?=$row['getaddr']?></span>
									<a href="#" class="up">隐藏</a>
                                </p>
                            </td>
                        </tr>
						<?}?>
                    </tbody>
                </table>
            </div>
            
            <div class="detail">
            	<h4 class="tetit1">
                	<span class="tetitsp acct">预订须知</span>
                	<span class="tetitsp">景点介绍</span>
                    <span class="tetitsp">交通信息</span>
                </h4>
                <div class="detdl">
                    <div class="detcon">
                        <?=nl2br($info['jqts'])?>
                        <div class="cl"></div>
                    </div>
                </div>
                
                <div class="detail">
                	<h4 class="detith4"><span class="bolf">景点介绍</span></h4>
                	<div class="detcon">
					<?=htmlspecialchars_decode($info['bhjq'])?>
                    </div>
                </div>
                
                <div class="detail">
                	<h4 class="detith4"><span class="bolf">交通信息</span></h4>
                	<div class="detcon2">
					<?=nl2br(htmlspecialchars_decode($info['jtzn']))?>
                    </div>
                </div>
            </div>
        </div>
		<script src="js/ui/PopWindow.js" type="text/javascript"></script> 
		<script id="tpl" type="text" >
				<h3>景区门票快速预订-输手机号自动注册购买</h3>
				<div class="left">
					<h4>非会员快速购买</h4>
					<p>
						<label>手机号：</label>
						<input type="text" class="inputT mobile" value=""/>
					</p>
					<div class="reg"><input type="button" class="reg" name="" value="继续预订"/></div>
					<p>我们会将您注册为票付通会员，手机号为您的用户名，密码为你手机后6位。</p>
				</div>
				<div class="right">
					<h4>会员登陆购买</h4>
					<p>
						<label>手机号：</label>
						<input type="text"  class="inputT mobile" value=""/>
					</p>
					<p>
						<label>&nbsp;&nbsp;&nbsp;密码：</label>
						<input type="password" id="password" class="inputT" value=""/>
					</p>
					<div class="login"><input type="button" class="login" name="" value="登陆预订"/></div>
				</div>
		</script>
	<script type="text/javascript" src="js/md5.js"></script>
	<script>
		var popwindow=new PopWindow();
		$(".orderbtn").click(function(){
			return false;
			var url=$(this).attr("href");
			popwindow.open($("#tpl").html());
			$(".reg").click(function(){
				var mobile=$(".left .mobile").first().val();
				$.ajax({
					"type":'POST',
					"url":"call/jh_mem.php",
					"data":{"action":"MemberRegisterEasy","mobile":mobile},
					"dataType":"json",
					"async":false,
					"success":function(out){
						if(out.status=="ok"){
							/* $.ajax({
								"type":'POST',
								"url":"dlogin.php",
								"data":{"password":mobile.substr(-6,6),"passport":mobile,"from":"ajax"},
								"dataType":"json",
								"async":false,
								"success":function(out){
									if(out==100){
										window.location=url;
									}else{
										alert(out.msg);
									}
								}
							});	*/
						}
					}
				});
			});
			$(".login").click(function(){
				var mobile=$(".right .mobile").first().val();
				var password=hex_md5($("#password").val());
					$.ajax({
					"type":'POST',
					"url":"dlogin.php",
					"data":{"password":password,"passport":mobile,"from":"ajax"},
					"dataType":"json",
					"async":false,
					"success":function(out){
						if(out==100){
								window.location=url;
						}else{
							alert("密码或手机号错误");
						}
					}
				});
				return false;
			})
			return false;
		});
	</script>